package net.zoneland.data.dataprofiling.system.service;

import net.zoneland.data.dataprofiling.common.domain.Tree;
import net.zoneland.data.dataprofiling.system.domain.DeptEntity;

import java.util.List;

/**
 * 部门管理
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-09-27 14:28:36
 */
public interface DeptService {

	DeptEntity get(Long deptId);
	
	List<DeptEntity> list();
	
	int count();
	
	int save(DeptEntity sysDept);
	
	int update(DeptEntity sysDept);
	
	int remove(Long deptId);
	
	int batchRemove(Long[] deptIds);

	Tree<DeptEntity> getTree();
	
	boolean checkDeptHasUser(Long deptId);

	List<Long> listChildrenIds(Long parentId);
}
